package com.zhao.service.impl;

import com.zhao.base.TokenThread;
import com.zhao.service.IpService;
import com.zhao.util.HttpRequest;

import net.sf.json.JSONObject;

public class IpServiceImpl implements IpService{
	private String url="https://api.weixin.qq.com/cgi-bin/getcallbackip?access_token=ACCESS_TOKEN";
	
	@Override
	public String GetServerIp() {
		url=url.replace("ACCESS_TOKEN",TokenThread.accessToken.getAccessToken());
		JSONObject json=HttpRequest.httpsRequest(url, "GET",null);
		return  json.toString();
	}

}
